package com.cqjtu.eecs.service.impl;

import com.cqjtu.eecs.entity.Course;
import com.cqjtu.eecs.entity.CourseSystem;
import com.cqjtu.eecs.mapper.CourseSystemMapper;
import com.cqjtu.eecs.service.ICourseSystemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 课程体系 服务实现类
 * </p>
 *
 * @author   
 * @since 2022-02-28
 */
@Service
public class CourseSystemServiceImpl extends ServiceImpl<CourseSystemMapper, CourseSystem> implements ICourseSystemService {

    @Resource
    private CourseSystemMapper courseSystemMapper;
    @Override
    public int updateCourseByCourseSystemId(Integer id, CourseSystem courseSystem) {
        return courseSystemMapper.updateCourseByCourseSystemId(id,courseSystem);
    }

    @Override
    public ArrayList<CourseSystem> selectAllCourseSystem() {
        return courseSystemMapper.selectAllCourseSystem();
    }

    @Override
    public ArrayList<CourseSystem> selectAllCourseSystemIsNull() {
        return courseSystemMapper.selectAllCourseSystemIsNull();
    }

    @Override
    public List<CourseSystem> selectAllCourseSystemByPreCourseSystemId(Integer temp) {
        return courseSystemMapper.selectAllCourseSystemByPreCourseSystemId(temp);
    }


}
